﻿using System;
using System.Collections.Generic;
using App.Interface;
using Domain.Entidades;
using Domain.Interfaces.Servicos;
using System.Data;
using System.Net.Mail;

namespace App
{
    public class formularios_email_AppService : Iformularios_email_AppService

    {

        private readonly Ifomularios_emailService _formularios_emailService;

        public formularios_email_AppService(Ifomularios_emailService formulariosEmailService)
        {
            _formularios_emailService = formulariosEmailService;
        }


        public Boolean enviar_email(contato contato)
        {
            try
            {
                return _formularios_emailService.enviar_email(contato);


            }
            catch (Exception ex)
            {

                throw ex;
            }
        }


        public Boolean enviar_email(curriculo curriculo)
        {
            try
            {
                return _formularios_emailService.enviar_email(curriculo);


            }
            catch (Exception ex)
            {

                throw ex;
            }
        }



        public Boolean enviar_email(seguros seguros)
        {
            try
            {
                return _formularios_emailService.enviar_email(seguros);


            }
            catch (Exception ex)
            {

                throw ex;
            }
        }


    }
}
